{layout name="../common/master"/}
<div id="right">
       <h4 style="border-bottom: 1px solid #ccc;padding-bottom: 3px">审核不通过列表   <span style="font-size: 16px"> 总计：{$totalCount}</span></h4>
    <form action="" method="get" role="form">
        <div class="form-group">
            <label for="">用户电话：</label>
            <input name="userPhone" {if condition="isset($_GET['userPhone'])"} value="{$_GET['userPhone']}" {/if} type="text"/>

            <label for="">借款时长：</label>
            <input name="loanRepayPeriod" {if condition="isset($_GET['loanRepayPeriod'])"} value="{$_GET['loanRepayPeriod']}" {/if} type="text"/>

            <label for="">借款金额：</label>
            <input name="actualAmount" {if condition="isset($_GET['actualAmount'])"} value="{$_GET['actualAmount']}" {/if} type="text"/>
        </div>
        <button type="submit" class="btn btn-primary">查询</button>
    </form>
    <button id="extend" type="submit" class="btn btn-info">导出到EXCEL</button>
    <table class="table-bordered table  table-hover" style="margin-top: 20px;">
        <thead>
        <tr>
            <th>序号</th>
            <th>用户电话</th>
            <th>短信审核状态</th>
            <th>借款金额</th>
            <th>借款时长</th>
            <th>用户ID</th>
            <th>审核状态</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach name="data" item="vo" key="k"}
            <tr>
                <th>{$vo['id']}</th>
                <th>{$vo['user_phone_num']}</th>
                <th>
                    {if condition="$vo['admin_sms_status'] eq 1"}
                    审核通过
                    {elseif condition="$vo['admin_sms_status'] eq 2"}
                    审核不通过
                    {elseif condition="$vo['admin_sms_status'] eq 3"}
                    无短信
                    {else/}
                    未查看
                    {/if}
                </th>
                <th>{$vo['actualAmount']}</th>
                <th>{$vo['loanRepayPeriod']}</th>
                <th>{$vo['user_id']}</th>
                <th>{$vo['check_status']}</th>
                <th>{$vo['create_time']}</th>
                <th>
                    <div class="btn-group">
                        <a style="margin-left: 5px" href="{:URL('home/Check/checkinfo',['uid'=>$vo['id'],'type'=>1])}" class="btn btn-primary btn-sm">查看详情</a>
                    </div>
                </th>
            </tr>
        {/foreach}
        </tbody>
    </table>
    {$page}

</div>
<script>
    $("#extend").click(function () {
        var url="{:URL('home/Check/checkedNoList',$_GET)}";
        url=url+"&extend=1";
        location.href=url;
    })
</script>
